package Book;

public class Book extends java.awt.print.Book {
    protected String Name;
    protected String Author;
    protected String Type;
    protected int Price;
    protected boolean Lend;
    public Book(String name, String author, String Type, int price) {
        this.Author = author;
        this.Type=Type;
        this.Price = price;
        this.Name = name;
    }
    @Override
    public String toString() {
        return "Book{" +
                "Name='" + Name + '\'' +
                ", Author='" + Author + '\'' +
                ", Tepty='" + Type + '\'' +
                ", Price=" + Price +
                ", Lend=" + Lend +
                '}';
    }

    public boolean isLend() {
        return Lend;
    }

    public void setLend(boolean lend) {
        Lend = lend;
    }

    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getAuthor() {
        return Author;
    }

    public void setAuthor(String author) {
        Author = author;
    }

    public int getPrice() {
        return Price;
    }

    public void setPrice(int price) {
        Price = price;
    }
}
